package com.bean;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;

@Data
public class BeanB {

    private BeanA beanA;

    @Autowired
    public void setBeanA(BeanA beanA) {
        this.beanA = beanA;
    }
}
